<layout name="master"/>
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> 首页</a></li>
    <li><a href="#">商品管理</a></li>
    <li><a href="#">类型列表</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">类型列表</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">类型列表</header>
            <div class="panel-body">
                <form role="form" action="" method="post">
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <th>属性名称</th>
                            <th>属性类别</th>
                            <th>属性值</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="AttrData" id="vo">
                        <tr>
                            <td style="width: 57px;">{$vo.taid}</td>
                            <td style="width: 100px;">{$vo.taname}</td>
                            <td style="width: 100px;"><if condition="$vo.class eq 1"> 规格 <else /> 属性 </if></td>
                            <td style="width: 600px;">{$vo.tavalue}</td>
                            <td>
                                <div class="btn-group">
                                    <a href="{:U('GenrdAttr/edit',['tid'=>$_GET['tid'],'taid'=>$vo[taid]])}" class="btn btn-success btn-xs">修改</a>
                                    <a href="{:U('GenrdAttr/del',['tid'=>$_GET['tid'],'taid'=>$vo[taid]])}" class="btn btn-info btn-xs">删除</a>
                                </div>
                            </td>
                        </tr>
                        </volist>
                        </tbody>

                    </table>
                    <a href="{:U('GenrdAttr/add',['tid'=>$_GET['tid']])}" class="btn btn-info">添加属性</a>
                </form>
            </div>
        </section>
    </div>
</div>
<script>
    function controller($scope, $, _){
    }
</script>
